package com.szpx.entity;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Data
@Table(name = "chw_fillm_mage")
public class Film {

    @Id
    @KeySql(useGeneratedKeys = true)
    private Integer id;
    private String fname;
    private String type;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date uptime;
    private String starring;
    private String company;
    private String discription;

    @Override
    public String toString() {
        return "Film{" +
                "id=" + id +
                ", type='" + type + '\'' +
                ", fname='" + fname + '\'' +
                ", uptimp=" + uptime +
                ", starring='" + starring + '\'' +
                ", company='" + company + '\'' +
                ", discription='" + discription + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getFname() {
        return fname;
    }

    public void setFname(String fname) {
        this.fname = fname;
    }

    public Date getUptime() {
        return uptime;
    }

    public void setUptime(Date uptime) {
        this.uptime = uptime;
    }

    public String getStarring() {
        return starring;
    }

    public void setStarring(String starring) {
        this.starring = starring;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getDiscription() {
        return discription;
    }

    public void setDiscription(String discription) {
        this.discription = discription;
    }
}
